package com.study.talk.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.talk.module.entity.Moment;
import org.apache.ibatis.annotations.Select;
import org.mapstruct.Mapper;

import java.util.ArrayList;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author thor
 * @since 2024-3-13
 */
@Mapper
public interface MomentMapper extends BaseMapper<Moment> {

    @Select("SELECT * FROM moment WHERE user_id=#{userId}")
    ArrayList<Moment> queryMomentListByUserId(Integer userId);

}
